﻿<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title/>
</head>
<body>
<p>Test parsing of HTML entities in XHTML attributes.</p>

<form method="get" action="#">
  <input type="submit" value="&nbsp;&lt;&rarr;&rArr;&gt;&nbsp;" id="input" />
</form>

<div id="result">FAILURE: script didn't run</div>
<script>
if (window.testRunner)
  testRunner.dumpAsText();
if (document.getElementById("input").value == "&nbsp;&lt;&rarr;&rArr;&gt;&nbsp;")
  document.getElementById("result").firstChild.nodeValue = "SUCCESS";
else
  document.getElementById("result").firstChild.nodeValue = "FAILURE";
</script>

</body>
</html>
